import request from '@/util/ajax.js'

export function createStationAndChestAPI(reqData) {
  return request({
    url: '/back_front/chests/createStationAndChestService',
    method: 'post',
    data: reqData
  })
}

export function getChestsByStationAPI(reqData) {
  return request({
    url: '/back_front/chests/getChestsByStationService',
    method: 'get',
    params: reqData
  })
}

export function getStationByChestAPI(reqData) {
  return request({
    url: '/back_front/chests/getStationByChestService',
    method: 'get',
    params: reqData
  })
}

export function getChestsAndStationsAllAPI() {
  return request({
    url: '/back_front/chests/getChestsAndStationsAllService',
    method: 'get'
  })
}

export function editStationAPI(reqData) {
  return request({
    url: '/back_front/chests/editStationService',
    method: 'post',
    data: reqData
  })
}

export function createChestAPI(reqData) {
  return request({
    url: '/back_front/chests/createChestService',
    method: 'post',
    data: reqData
  })
}

export function changeStationAndChestNoByChestAPI(reqData) {
  return request({
    url: '/back_front/chests/changeStationAndChestNoByChestService',
    method: 'post',
    data: reqData
  })
}

export function editChestAPI(reqData) {
  return request({
    url: '/back_front/chests/editChestService',
    method: 'post',
    data: reqData
  })
}
